package com.his.invdrug.dao;

import com.his.invdrug.entity.InvDrugHeader;
import com.his.invdrug.entity.InvDrugHeader_Detailed;
import com.his.invdrug.vo.InvDrugHeaderSearchVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InvDrugHeaderMapper {
    int deleteByPrimaryKey(String id);
    int insert(InvDrugHeader record);
    int insertSelective(InvDrugHeader record);
    InvDrugHeader selectByPrimaryKey(String id);
    int updateByPrimaryKeySelective(InvDrugHeader record);
    int updateByPrimaryKey(InvDrugHeader record);
    //=============================自定义功能============================

    /**
     *查询库单列表用作首页展示
     */
    List<InvDrugHeader_Detailed> selectInvDrugHeaderForMainShow(InvDrugHeaderSearchVo invDrugHeaderSearchVo);
    /**
     * 通过主键查询出入库单详细信息
     */
    InvDrugHeader_Detailed selectInvDrugHeaderDetailedByKey(String id);
    /**
     * 通过本地机构查询最大的库单号
     */
    Integer selectMaxInoutnumByOrgpl(InvDrugHeader record);

    /**
     * 取消审核
     */
    void cancelExamine(String id);
}